package com.example.spring.bean;

import org.springframework.beans.factory.FactoryBean;

/**
 * ClassName:PersonFactoryBean
 * Package:com.example.spring.bean
 * Description:
 *
 * @Author:ZhangXin
 * @Create:2023/5/8-21:42
 * @Version:v1.0
 */
//工厂bean
public class PersonFactoryBean implements FactoryBean<Person> {
    @Override
    public Person getObject() throws Exception {

        return new Person();
    }

    @Override
    public Class<?> getObjectType() {
        return null;
    }

    @Override
    public boolean isSingleton() {
        return FactoryBean.super.isSingleton();
    }
}
